﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.Adapter.ServiceCanUsed.Interface
{
    public interface IDBHelper
    {

        /// <summary>
        /// 添加
        /// </summary>
        /// <typeparam name="T"></typeparam>
        void Add<T>();

        /// <summary>
        /// 更新
        /// </summary>
        /// <typeparam name="T"></typeparam>
        void Update<T>();

        /// <summary>
        /// 删除
        /// </summary>
        /// <typeparam name="T"></typeparam>
        void Delete<T>();

        /// <summary>
        /// 查询
        /// </summary>
        /// <typeparam name="T"></typeparam>
        void Query<T>();

    }
}
